﻿using Microsoft.EntityFrameworkCore;
using Practice.Common.Domains;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Practice.Common.DbCont
{
    public class EFDbContext:DbContext
    {
        public EFDbContext(DbContextOptions<EFDbContext> options) : base(options) { }
        public DbSet<Users> Users { get; set; }
        public DbSet<Permission> Permission { get; set; }
        public DbSet<Role> Role { get; set; }
        public DbSet<RolePermission> RolePermission { get; set; }
        public DbSet<UserRole> UserRole { get; set; }

        /// <summary>
        /// 日志表
        /// </summary>
        public DbSet<_Nlog> _Nlog { get; set; }


    }
}
